package com.command.center.pucms.pucmsgateway.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.command.center.pucms.pucmsgateway.domain.Function;
import com.command.platform.mybatis.mapper.IBaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author zlb
 * @since 2021-04-23
 */
@Mapper
public interface FunctionMapper extends IBaseMapper<Function> {

    /**
     * 根据角色查询功能菜单
     *
     * @param roleId roleId
     * @return Set<String>
     */
    Set<String> findFuncSetByRoleId(@Param("roleId") Integer roleId);

    /**
     * 根据角色查询功能菜单
     *
     * @param roleId roleId
     * @return List<Function>
     */
    List<Function> findFuncListByRoleId(@Param("roleId")Integer roleId);
}
